import request from '@/http'

// 创建报表任务
export const create = async (data: object) => {
  return await request.post({
    url: '/api/bizz/exeTForms/createTask',
    data:data,
  })
}


// 分页列表查询
export const page = async (data: object) => {
  return await request.post({
    url: '/api/bizz/exeTForms/page',
    data: data
  })
}

// 查询对应报表表头
export const exeTabel = async (data: object) => {
  return await request.post({
    url: '/api/bizz/exeTFormsField/selectFormField',
    data,
     headersType: 'application/x-www-form-urlencoded'
  })
}

// 查询报表表格数据

export const exeTabelContent = async (data: object) => {
  return await request.post({
    url: '/api/bizz/exeTForms/selectReportForm',
    data,
     headersType: 'application/x-www-form-urlencoded'
  })
}
//查看任务内容
export const searchTask = async (data: object) => {
  return await request.post({
    url: '/api/bizz/exeTForms/searchTask',
    data,
     headersType: 'application/x-www-form-urlencoded'
  })
}


//人员保存任务上传
export const insertTask = async (data: object) => {
  return await request.post({
    url: '/api/bizz/exeTFormsUser/insertTask',
     data:data,
  })
}

//查询登录人员相关任务
export const searchUserTask = async (data: object) => {
  return await request.post({
    url: '/api/bizz/exeTForms/searchUserTask',
     data:data,
  })
}


//删除
export const del = async (data: object) => {
  return await request.post({
    url: '/api/bizz/exeTForms/delete',
    data,
     headersType: 'application/x-www-form-urlencoded'
  })
}




